// App.tsx

import React from 'react';
import {View, Button, NativeModules} from 'react-native';

const {AlarmModule} = NativeModules;

const App: React.FC = () => {
  const setAlarm = () => {
    // 设置一个10秒后触发的闹钟
    AlarmModule.setAlarm(10);
  };

  return (
    <View>
      <Button title="设置闹钟1" onPress={setAlarm} />
    </View>
  );
};

export default App;
